<h1 class="h1Text" style="margin:0px">My Favorite Items</h1>
<table width="98%" style="font-size: 11px;margin: 5px;border:1px gray dashed" align="center">
    {{assign var=products value=$favorite->get_items()}}
    {{if $products<>""}}
    <tr>
        <th>Part#</th>
        <th>Short Desc</th>
        <th align="center">Add/Remove</th>
    </tr>    
    
        {{foreach from=$products item=f}}
        {{assign var=product value=$f->get_product_obj()}}
            {{if $product<>""}}
                <tr>
                    <td>
                        {{$product->part_num}}
                    </td>
                    <td>
                        {{assign var=desc value=$product->get_description()}}
                        <a href="#">{{$desc->short_desc}}</a>

                    </td>
                    <td>
                        {{load_specific_view name="add_remove_fav" module="favorite" fav_prod_id=$product->id fav_list_id=$favorite->id state="checked"}}
                    </td>
                </tr>
            {{/if}}
        {{/foreach}}
   {{else}}
       <tr>
           <td colspan="3" align="center"> there are no favorite items in your list! </td>
       </tr>

    {{/if}}
</table>